package com.my.interview;

/**
 * 双向链表
 */
public class DoubleLinkedList {

    private String key;
    private DoubleLinkedList prev;
    private DoubleLinkedList next;
    private int value;

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public DoubleLinkedList getPrev() {
        return prev;
    }

    public void setPrev(DoubleLinkedList prev) {
        this.prev = prev;
    }

    public DoubleLinkedList getNext() {
        return next;
    }

    public void setNext(DoubleLinkedList next) {
        this.next = next;
    }

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }
}
